from django.db import models

# Create your models here.
class Papers(models.Model):
    title = models.TextField(verbose_name='标题', max_length=5000)
    authors = models.CharField(verbose_name='作者', max_length=1000)
    abstract = models.TextField(verbose_name='摘要', max_length=8000)
    keywords = models.TextField(verbose_name='关键字', max_length=5000)
    publish_year = models.CharField(verbose_name='发布时间',max_length=1000)
    publish = models.TextField(verbose_name='出版社',max_length=5000)
    ref_wf = models.CharField(verbose_name='引用量',max_length=1000)
    link = models.TextField(verbose_name='连接',max_length=5000)

class Scholar(models.Model):
    name = models.CharField(verbose_name='学者姓名',max_length=1000)
    company = models.CharField(verbose_name='单位',max_length=1000)
    Citation = models.IntegerField(verbose_name='文章总引用量',default=0)
    info = models.TextField(verbose_name='学者基本信息',max_length=8000)
    paperList = models.ManyToManyField('Papers',verbose_name='学者发表论文')
    cooperationList = models.ManyToManyField('Scholar',verbose_name='合作关系列表')